package com.koron.common.web;

import com.koron.common.core.business.print.ReportProcessing;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;


@Slf4j
@Order(2)
@Component
public class CommonListener implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) {


        new Thread(() -> {
            //初始化报表打印组件
            ReportProcessing.init();
        }).start();

    }

}
